<@override name="content">
<div class="page-header">
  <h3>
    <#if user?? && user.name==userModel.name> 
    <a href="user/edit" class="pull-right btn" style="margin: 15px 0 0;"><i class="iconbox icon-cog"></i>Account Settings</a> 
    </#if>
    Dashboard
  </h3>
</div>

<div class="<#if oj_fluid_width??>container-fluid<#else>container</#if> warp">
  <div class="row">
    <div class="span6 media">
      <#if user?? && user.name==userModel.name><a href="user/#area=profile" class="pull-left" title="click to upload new avatar"></#if>
      <img class="pull-left img-polaroid media-object" alt="user avatar"
        onerror="this.onerror=null;this.src='assets/images/user/default.png'" src="<#if userModel.avatar??>${userModel.avatar}<#else>assets/images/user/default.png</#if>" width="100" height="100" />
      <#if user?? && user.name==userModel.name></a></#if>
      <div class="media-body">
        <strong class="index-media-body-title">Profile Information</strong><br> 
        Username: ${userModel.name!}<br> 
        Nick: ${userModel.nick!"ACmer"}<br> 
        UID: ${userModel.uid!}<br>
        <#if adminUser?? || (user?? && user.name==userModel.name)> Email: <span><a href="mailto:${userModel.email!}">${userModel.email!}</a></span><br> </#if> 
        Registered: ${userModel.createTime_t!}<br>
        Last Login: ${userModel.loginTime_t!}
      </div>
    </div>
    <div class="span6 profile">
      <!--<dl class="dl-horizontal">
                <dt>My Property:</dt>
                <dd>
                    My Credits:<strong>8109</strong>&nbsp;&nbsp;<a href="/score.html">History</a><br/>
                    My level: <strong>62</strong><img src="/public/images/icon-rank-sun.png"/><img src="/public/images/icon-rank-sun.png"/><img src="/public/images/icon-rank-sun.png"/><img src="/public/images/icon-rank-moon.png"/><img src="/public/images/icon-rank-moon.png"/><img src="/public/images/icon-rank-moon.png"/><img src="/public/images/icon-rank-star.png"/><img src="/public/images/icon-rank-star.png"/><br/>
                    Online Time:  <span class="btn-tooltip" id="btn-tooltip"><strong>8064</strong> hours</span>
                </dd>
            </dl>-->
      <dl class="dl-horizontal">
        <dt>Rank:</dt>
        <dd>${userModel.rank!0}</dd>
      </dl>
      <dl class="dl-horizontal">
        <dt>Solved:</dt>
        <dd>
          <a href="status?name=${userModel.name!}&result=0">${userModel.solved!0}</a>
        </dd>
      </dl>
      <dl class="dl-horizontal">
        <dt>Submissions:</dt>
        <dd>
          <a href="status?name=${userModel.name!}">${userModel.submission!0}</a>
        </dd>
      </dl>
      <dl class="dl-horizontal">
        <dt>School:</dt>
        <dd>
          <a href="user/search?word=${userModel.school!}&scope=school" data-toggle="tooltip" title="search this school">${userModel.school!"Unknown"}</a>
        </dd>
      </dl>
    </div>
    <div class="span5 problems">
    <#if userModel.problems??>
    <h4>Solved Problems</h4>
    <#list userModel.problems as problem>
      <#if problem.result == 0>
      <span><a href="status?pid=${problem.pid}&name=${userModel.name}&result=0" title="Problem ${problem.pid} : ${problem.title}">${problem.pid}</a></span>
      </#if>
    </#list>
    </#if>
    </div>
    
    <div class="span5 problems">
    <#if userModel.problems??>
    <h4>Unsolved Problems</h4>
    <#list userModel.problems as problem>
      <#if problem.result != 0>
      <span><a href="status?pid=${problem.pid}&name=${userModel.name}" title="Problem ${problem.pid} : ${problem.title}">${problem.pid}</a></span>
      </#if>
    </#list>
    </#if>
    </div>
  </div>
</div>
</@override>
<@override name="scripts">
</@override>
<@extends name="../common/_layout.html" />
